﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for NorIod.xaml
    /// </summary>
    public partial class NorIod : Window
    {
        public NorIod()
        {
            InitializeComponent();
        }

        private void NorIodBestilbutton_Click(object sender, RoutedEventArgs e)
        {
            string NorIod = "131-I Nor-Iod-Cholesterol";
            int antal = 1;
            string dato = leveringsdatoNorIoddatePicker.SelectedDate.ToString(); //.ToString("dd-MM-yyyy");           
            int ordreNr = Convert.ToInt32(ordrenrNorIodtextBox.Text);
            string bestiltAf = bestiltAfcomboBox.Text;

            Bestilling_new.XMLquery(NorIod, antal, dato, ordreNr, bestiltAf);

            Bestilling_new.SendMail("tbs@rn.dk", "NorIod", antal, dato, ordreNr, bestiltAf);
        }
    }
}
